package com.zp.self.module.level_5_设计模式.行为型模式.Ⅳ_责任链模式;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/7/2 22:30
 * @description ：
 */
public class OverHandler extends Handler{
    public OverHandler() {
        super(Handler.NUM_SEVEN);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getNum() + "天，" + leave.getContent() + "。");
        System.out.println("你被开除了");
    }
}
